<?php

class FormatHandler
{
    public function __construct(){}
    
    public function __destruct(){}
    
    public function getOutput($number, $is_int)
    {
        $is_int = (bool)$is_int;
        if($is_int)
            return number_format($number, 0, ",", "." );
        else
            return number_format($number, 2, ",", "." );
    }
}
?>
